package com.zmm.zebulon.module.system.biz.controller.admin.permission.vo.permission;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Collections;
import java.util.Set;

/**
 * description: 管理后台 -  赋予用户角色 Request VO
 *
 * @author zebulon
 * package com.zmm.zebulon.module.system.biz.controller.admin.permission.vo.permission
 * name: PermissionAssignUserRoleReqVO
 * date 2024/1/8 21:58
 */
@Schema(description = "管理后台 - 赋予用户角色 Request VO")
@Data
public class PermissionAssignUserRoleReqVO {

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "角色编号列表", example = "1,3,5")
    private Set<Long> roleIds = Collections.emptySet(); // 兜底

}
